<?php

class App_Db_Table extends Zend_Db_Table_Abstract
{
    public function toJqGrid($id, $data)
    {
        $result = array();
        foreach ($data as $item)
        {
            $values = array_values($item);
            array_shift($values);
            $result[] = array(
                'id' => $item[$id],
                'cell' => $values
            );
        }
        return $result;
    }
}